<?php 

/**
*Form Builder & Admin Generator

*@author marcio <opi14@op.pl>, <polishvodka7@gmail.com>
*@copyright Copyright (c) 2011, marcio
*@version 1.6.5
*/


class Volta_Pagination
{

	protected $pagination = null;
	
	
	public function __construct($pagination_view)
	{
		if(file_exists('libraries/drivers/Pagination/'.$pagination_view.'.php'))
		{
			require_once('libraries/drivers/Pagination/'.$pagination_view.'.php');
			$this -> pagination = new $pagination_view();
		}
	}
	
	
	public function get()
	{
		if($this -> pagination instanceof Volta_Pagination_View)
			return $this -> pagination;
	}
	
	
	public function __toString()
	{
		return (string)$this -> pagination -> render();
	}
	
}
?>